aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ntfs/inode.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2017-12-11 06:35:05 -0500
committerJeff Layton <jlayton@redhat.com>2018-01-01 10:09:33 -0500
commit7a11ac289c437cb06633620940b191a63dec1f4a (patch)
treef661d9dd2adf8ec5dcf5c67d1a9cbd9f99928101 /fs/ntfs/inode.c
parent8ec426c7019ed9600d9dc0cf758445adcdbfc14e (diff)
ntfs: remove i_version handling
NTFS keeps track of the i_version counter here, seemingly for no reason. It does not set the SB_I_VERSION flag so it'll never be incremented on write, and it doesn't increment it internally for metadata operations. Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'fs/ntfs/inode.c')
-rw-r--r--fs/ntfs/inode.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/ntfs/inode.c b/fs/ntfs/inode.c
index 7c410f879412..1c1ee489284b 100644
--- a/fs/ntfs/inode.c
+++ b/fs/ntfs/inode.c
@@ -560,13 +560,6 @@ static int ntfs_read_locked_inode(struct inode *vi)
560 ntfs_debug("Entering for i_ino 0x%lx.", vi->i_ino); 560 ntfs_debug("Entering for i_ino 0x%lx.", vi->i_ino);
561 561
562 /* Setup the generic vfs inode parts now. */ 562 /* Setup the generic vfs inode parts now. */
563
564 /*
565 * This is for checking whether an inode has changed w.r.t. a file so
566 * that the file can be updated if necessary (compare with f_version).
567 */
568 vi->i_version = 1;
569
570 vi->i_uid = vol->uid; 563 vi->i_uid = vol->uid;
571 vi->i_gid = vol->gid; 564 vi->i_gid = vol->gid;
572 vi->i_mode = 0; 565 vi->i_mode = 0;
@@ -1240,7 +1233,6 @@ static int ntfs_read_locked_attr_inode(struct inode *base_vi, struct inode *vi)
1240 base_ni = NTFS_I(base_vi); 1233 base_ni = NTFS_I(base_vi);
1241 1234
1242 /* Just mirror the values from the base inode. */ 1235 /* Just mirror the values from the base inode. */
1243 vi->i_version = base_vi->i_version;
1244 vi->i_uid = base_vi->i_uid; 1236 vi->i_uid = base_vi->i_uid;
1245 vi->i_gid = base_vi->i_gid; 1237 vi->i_gid = base_vi->i_gid;
1246 set_nlink(vi, base_vi->i_nlink); 1238 set_nlink(vi, base_vi->i_nlink);
@@ -1507,7 +1499,6 @@ static int ntfs_read_locked_index_inode(struct inode *base_vi, struct inode *vi)
1507 ni = NTFS_I(vi); 1499 ni = NTFS_I(vi);
1508 base_ni = NTFS_I(base_vi); 1500 base_ni = NTFS_I(base_vi);
1509 /* Just mirror the values from the base inode. */ 1501 /* Just mirror the values from the base inode. */
1510 vi->i_version = base_vi->i_version;
1511 vi->i_uid = base_vi->i_uid; 1502 vi->i_uid = base_vi->i_uid;
1512 vi->i_gid = base_vi->i_gid; 1503 vi->i_gid = base_vi->i_gid;
1513 set_nlink(vi, base_vi->i_nlink); 1504 set_nlink(vi, base_vi->i_nlink);