dir.c (1136fa0c07de570dc17858745af8be169d1440ba) | dir.c (2bf06b8e64280251775011f63d44e7bfc48dbdfd) |
---|---|
1/* 2 FUSE: Filesystem in Userspace 3 Copyright (C) 2001-2008 Miklos Szeredi <miklos@szeredi.hu> 4 5 This program can be distributed under the terms of the GNU GPL. 6 See the file COPYING. 7*/ 8 --- 1759 unchanged lines hidden (view full) --- 1768 if (is_truncate) { 1769 /* NOTE: this may release/reacquire fi->lock */ 1770 __fuse_release_nowrite(inode); 1771 } 1772 spin_unlock(&fi->lock); 1773 1774 /* 1775 * Only call invalidate_inode_pages2() after removing | 1/* 2 FUSE: Filesystem in Userspace 3 Copyright (C) 2001-2008 Miklos Szeredi <miklos@szeredi.hu> 4 5 This program can be distributed under the terms of the GNU GPL. 6 See the file COPYING. 7*/ 8 --- 1759 unchanged lines hidden (view full) --- 1768 if (is_truncate) { 1769 /* NOTE: this may release/reacquire fi->lock */ 1770 __fuse_release_nowrite(inode); 1771 } 1772 spin_unlock(&fi->lock); 1773 1774 /* 1775 * Only call invalidate_inode_pages2() after removing |
1776 * FUSE_NOWRITE, otherwise fuse_launder_page() would deadlock. | 1776 * FUSE_NOWRITE, otherwise fuse_launder_folio() would deadlock. |
1777 */ 1778 if ((is_truncate || !is_wb) && 1779 S_ISREG(inode->i_mode) && oldsize != outarg.attr.size) { 1780 truncate_pagecache(inode, outarg.attr.size); 1781 invalidate_inode_pages2(mapping); 1782 } 1783 1784 clear_bit(FUSE_I_SIZE_UNSTABLE, &fi->state); --- 197 unchanged lines hidden --- | 1777 */ 1778 if ((is_truncate || !is_wb) && 1779 S_ISREG(inode->i_mode) && oldsize != outarg.attr.size) { 1780 truncate_pagecache(inode, outarg.attr.size); 1781 invalidate_inode_pages2(mapping); 1782 } 1783 1784 clear_bit(FUSE_I_SIZE_UNSTABLE, &fi->state); --- 197 unchanged lines hidden --- |