summaryrefslogtreecommitdiffstats
path: root/fs/nfs/flushd.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/flushd.c')
-rw-r--r--fs/nfs/flushd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/flushd.c b/fs/nfs/flushd.c
index 02024c90e..700504ded 100644
--- a/fs/nfs/flushd.c
+++ b/fs/nfs/flushd.c
@@ -175,7 +175,7 @@ static void inode_append_flushd(struct inode *inode)
* it from disappearing when on the flush list
*/
NFS_FLAGS(inode) |= NFS_INO_FLUSH;
- inode->i_count++;
+ atomic_inc(&inode->i_count);
out:
spin_unlock(&nfs_flushd_lock);
}