OSDN Git Service

filemap: Add fgf_t typedef
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 26 May 2023 20:43:23 +0000 (16:43 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 24 Jul 2023 22:04:30 +0000 (18:04 -0400)
commitffc143db63eeea7c8a27deb3c56d090a220a1ace
tree8d3fe4a4523bc5e02bbd34c63ef5098b1de0e3ea
parent7a8eb01b078f6280089347feee02aebda0024880
filemap: Add fgf_t typedef

Similarly to gfp_t, define fgf_t as its own type to prevent various
misuses and confusion.  Leave the flags as FGP_* for now to reduce the
size of this patch; they will be converted to FGF_* later.  Move the
documentation to the definition of the type insted of burying it in the
__filemap_get_folio() documentation.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/btrfs/file.c
fs/f2fs/compress.c
fs/f2fs/f2fs.h
fs/iomap/buffered-io.c
include/linux/pagemap.h
mm/filemap.c
mm/folio-compat.c