/* * linux/fs/ufs/file.c * * Copyright (C) 1998 * Daniel Pirkl * Charles University, Faculty of Mathematics and Physics * * from * * linux/fs/ext2/file.c * * Copyright (C) 1992, 1993, 1994, 1995 * Remy Card (card@masi.ibp.fr) * Laboratoire MASI - Institut Blaise Pascal * Universite Pierre et Marie Curie (Paris VI) * * from * * linux/fs/minix/file.c * * Copyright (C) 1991, 1992 Linus Torvalds * * ext2 fs regular file handling primitives */ #include #include "ufs_fs.h" #include "ufs.h" /* * We have mostly NULL's here: the current defaults are ok for * the ufs filesystem. */ const struct file_operations ufs_file_operations = { .llseek = generic_file_llseek, .read_iter = generic_file_read_iter, .write_iter = generic_file_write_iter, .mmap = generic_file_mmap, .open = generic_file_open, .fsync = generic_file_fsync, .splice_read = generic_file_splice_read, }; 2ae87e62adf5000ccd4d0'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-01-25 07:49:34 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2017-01-25 07:49:34 -0800
commit4dfa2b84118fd6c95202ae87e62adf5000ccd4d0 (patch)
tree8cb15b77239a4c5655f3090e627cd2bfa051ff01
parent83d230eb5c638949350f4761acdfc0af5cb1bc00 (diff)
xfs: only update mount/resv fields on success in __xfs_ag_resv_init
Try to reserve the blocks first and only then update the fields in or hanging off the mount structure. This way we can call __xfs_ag_resv_init again after a previous failure. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>