mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
ee20808d84
Create a new helper function to calculate the fundamental allocation unit (i.e. the smallest unit of space we can allocate) of a file. Things are going to get hairy with range-exchange on the realtime device, so prepare for this now. Remove the static attribute from xfs_is_falloc_aligned since the next patch will need it. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
16 lines
395 B
C
16 lines
395 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright (c) 2000-2005 Silicon Graphics, Inc.
|
|
* All Rights Reserved.
|
|
*/
|
|
#ifndef __XFS_FILE_H__
|
|
#define __XFS_FILE_H__
|
|
|
|
extern const struct file_operations xfs_file_operations;
|
|
extern const struct file_operations xfs_dir_file_operations;
|
|
|
|
bool xfs_is_falloc_aligned(struct xfs_inode *ip, loff_t pos,
|
|
long long int len);
|
|
|
|
#endif /* __XFS_FILE_H__ */
|