History

filemap: Remove AOP_FLAG_CONT_EXPAND

This flag is no longer used, so remove it.

Matthew Wilcox (Oracle) committed 4 years ago

Commit d7414ba1 parent 800ba292 files · +1 −3Browse files

Unified · Split

2 files
  1. fs/buffer.c +1 −2
  2. include/linux/fs.h +0 −1
fs/buffer.c+1−2
@@ -2352,8 +2352,7 @@ int generic_cont_expand_simple(struct inode *inode, loff_t size) · 2351 unmodified lines
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+0−1
@@ -275,7 +275,6 @@ enum positive_aop_returns { · 274 unmodified lines
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 */