vfs_inode.c (22d8dcdf8f8a3882d98757e78169014bb0bc6b23) vfs_inode.c (6e8dc55550273084b7fb5846df2f44439f5d03d9)
1/*
2 * linux/fs/9p/vfs_inode.c
3 *
4 * This file contains vfs inode ops for the 9P2000 protocol.
5 *
6 * Copyright (C) 2004 by Eric Van Hensbergen <ericvh@gmail.com>
7 * Copyright (C) 2002 by Ron Minnich <rminnich@lanl.gov>
8 *

--- 1270 unchanged lines hidden (view full) ---

1279 iattr->ia_size != i_size_read(dentry->d_inode)) {
1280 retval = vmtruncate(dentry->d_inode, iattr->ia_size);
1281 if (retval)
1282 return retval;
1283 }
1284
1285 setattr_copy(dentry->d_inode, iattr);
1286 mark_inode_dirty(dentry->d_inode);
1/*
2 * linux/fs/9p/vfs_inode.c
3 *
4 * This file contains vfs inode ops for the 9P2000 protocol.
5 *
6 * Copyright (C) 2004 by Eric Van Hensbergen <ericvh@gmail.com>
7 * Copyright (C) 2002 by Ron Minnich <rminnich@lanl.gov>
8 *

--- 1270 unchanged lines hidden (view full) ---

1279 iattr->ia_size != i_size_read(dentry->d_inode)) {
1280 retval = vmtruncate(dentry->d_inode, iattr->ia_size);
1281 if (retval)
1282 return retval;
1283 }
1284
1285 setattr_copy(dentry->d_inode, iattr);
1286 mark_inode_dirty(dentry->d_inode);
1287 if (iattr->ia_valid & ATTR_MODE) {
1288 /* We also want to update ACL when we update mode bits */
1289 retval = v9fs_acl_chmod(dentry);
1290 if (retval < 0)
1291 return retval;
1292 }
1287 return 0;
1288}
1289
1290/**
1291 * v9fs_stat2inode - populate an inode structure with mistat info
1292 * @stat: Plan 9 metadata (mistat) structure
1293 * @inode: inode to populate
1294 * @sb: superblock of filesystem

--- 723 unchanged lines hidden ---
1293 return 0;
1294}
1295
1296/**
1297 * v9fs_stat2inode - populate an inode structure with mistat info
1298 * @stat: Plan 9 metadata (mistat) structure
1299 * @inode: inode to populate
1300 * @sb: superblock of filesystem

--- 723 unchanged lines hidden ---