Unionfs: remove unused fgen in file_release
authorErez Zadok <ezk@cs.sunysb.edu>
Sat, 30 Apr 2011 05:33:58 +0000 (01:33 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 12 Aug 2011 02:39:34 +0000 (22:39 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/commonfops.c

index 0f6cba3c8006f669fc400646e3ac824cfa0d7ce4..3bb7feb274f73ff1d33324ed1053b46502dd1d92 100644 (file)
@@ -651,7 +651,7 @@ int unionfs_file_release(struct inode *inode, struct file *file)
        struct dentry *dentry = file->f_path.dentry;
        struct dentry *parent;
        int bindex, bstart, bend;
-       int fgen, err = 0;
+       int err = 0;
 
        /*
         * Since mm/memory.c:might_fault() (under PROVE_LOCKING) was
@@ -687,7 +687,6 @@ int unionfs_file_release(struct inode *inode, struct file *file)
        inodeinfo = UNIONFS_I(inode);
 
        /* fput all the lower files */
-       fgen = atomic_read(&fileinfo->generation);
        bstart = fbstart(file);
        bend = fbend(file);