diff options
Diffstat (limited to 'fs/fs-writeback.c')
-rw-r--r-- | fs/fs-writeback.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 6db95cf3aaa2..031b27a4bc9a 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c | |||
@@ -623,7 +623,6 @@ int generic_osync_inode(struct inode *inode, struct address_space *mapping, int | |||
623 | int need_write_inode_now = 0; | 623 | int need_write_inode_now = 0; |
624 | int err2; | 624 | int err2; |
625 | 625 | ||
626 | current->flags |= PF_SYNCWRITE; | ||
627 | if (what & OSYNC_DATA) | 626 | if (what & OSYNC_DATA) |
628 | err = filemap_fdatawrite(mapping); | 627 | err = filemap_fdatawrite(mapping); |
629 | if (what & (OSYNC_METADATA|OSYNC_DATA)) { | 628 | if (what & (OSYNC_METADATA|OSYNC_DATA)) { |
@@ -636,7 +635,6 @@ int generic_osync_inode(struct inode *inode, struct address_space *mapping, int | |||
636 | if (!err) | 635 | if (!err) |
637 | err = err2; | 636 | err = err2; |
638 | } | 637 | } |
639 | current->flags &= ~PF_SYNCWRITE; | ||
640 | 638 | ||
641 | spin_lock(&inode_lock); | 639 | spin_lock(&inode_lock); |
642 | if ((inode->i_state & I_DIRTY) && | 640 | if ((inode->i_state & I_DIRTY) && |