Skip to content

Commit d7414ba

Browse files
author
Matthew Wilcox (Oracle)
committed
filemap: Remove AOP_FLAG_CONT_EXPAND
This flag is no longer used, so remove it. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Al Viro <viro@zeniv.linux.org.uk> Acked-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 800ba29 commit d7414ba

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

fs/buffer.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2352,8 +2352,7 @@ int generic_cont_expand_simple(struct inode *inode, loff_t size)
23522352
if (err)
23532353
goto out;
23542354

2355-
err = pagecache_write_begin(NULL, mapping, size, 0,
2356-
AOP_FLAG_CONT_EXPAND, &page, &fsdata);
2355+
err = pagecache_write_begin(NULL, mapping, size, 0, 0, &page, &fsdata);
23572356
if (err)
23582357
goto out;
23592358

include/linux/fs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ enum positive_aop_returns {
275275
AOP_TRUNCATED_PAGE = 0x80001,
276276
};
277277

278-
#define AOP_FLAG_CONT_EXPAND 0x0001 /* called from cont_expand */
279278
#define AOP_FLAG_NOFS 0x0002 /* used by filesystem to direct
280279
* helper code (eg buffer layer)
281280
* to clear GFP_FS from alloc */

0 commit comments

Comments
 (0)