]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge remote-tracking branch 'fsnotify/for-next'
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 2 Apr 2012 02:10:38 +0000 (12:10 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 2 Apr 2012 02:10:38 +0000 (12:10 +1000)
1  2 
fs/cachefiles/namei.c
fs/nfsd/vfs.c
fs/notify/fanotify/fanotify_user.c
fs/notify/group.c
fs/notify/mark.c
include/linux/fsnotify_backend.h

Simple merge
diff --cc fs/nfsd/vfs.c
index 296d671654d6a12fbb89567ea6b80cfd26a1829f,5f30270ae644d7b64a870460fe2fb7378c23392c..bb537f0b736bd26bf351cae4d00e9adb4ddb75ba
@@@ -941,9 -923,9 +940,8 @@@ nfsd_vfs_read(struct svc_rqst *rqstp, s
                nfsdstats.io_read += host_err;
                *count = host_err;
                err = 0;
-               fsnotify_access(file);
        } else 
                err = nfserrno(host_err);
 -out:
        return err;
  }
  
index 3568c8a8b1387aea2845d6998b2b7e6d1dc6dcb2,2d4925b98bdb53104863662db3babb4c79c66bdd..d68873123ca98b83cd33dd8a56b791e93a078881
@@@ -548,10 -554,13 +556,13 @@@ static int fanotify_remove_vfsmount_mar
  
        removed = fanotify_mark_remove_from_mask(fsn_mark, mask, flags);
        fsnotify_put_mark(fsn_mark);
 -      if (removed & mnt->mnt_fsnotify_mask)
 +      if (removed & real_mount(mnt)->mnt_fsnotify_mask)
                fsnotify_recalc_vfsmount_mask(mnt);
+       ret = 0;
+ err:
+       mutex_unlock(&group->mutex);
  
-       return 0;
+       return ret;
  }
  
  static int fanotify_remove_inode_mark(struct fsnotify_group *group,
@@@ -625,10 -644,13 +646,13 @@@ static int fanotify_add_vfsmount_mark(s
        }
        added = fanotify_mark_add_to_mask(fsn_mark, mask, flags);
  
 -      if (added & ~mnt->mnt_fsnotify_mask)
 +      if (added & ~real_mount(mnt)->mnt_fsnotify_mask)
                fsnotify_recalc_vfsmount_mask(mnt);
- err:
+       ret = 0;
+ err2:
        fsnotify_put_mark(fsn_mark);
+ err:
+       mutex_unlock(&group->mutex);
        return ret;
  }
  
Simple merge
Simple merge
Simple merge