diff options
Diffstat (limited to 'fs/xfs/xfs_bmap_util.c')
-rw-r--r-- | fs/xfs/xfs_bmap_util.c | 39 |
1 files changed, 4 insertions, 35 deletions
diff --git a/fs/xfs/xfs_bmap_util.c b/fs/xfs/xfs_bmap_util.c index bdd552d83107..7e1c2ae81c35 100644 --- a/fs/xfs/xfs_bmap_util.c +++ b/fs/xfs/xfs_bmap_util.c | |||
@@ -965,28 +965,9 @@ xfs_free_eofblocks( | |||
965 | return error; | 965 | return error; |
966 | } | 966 | } |
967 | 967 | ||
968 | /* | 968 | int |
969 | * xfs_alloc_file_space() | ||
970 | * This routine allocates disk space for the given file. | ||
971 | * | ||
972 | * If alloc_type == 0, this request is for an ALLOCSP type | ||
973 | * request which will change the file size. In this case, no | ||
974 | * DMAPI event will be generated by the call. A TRUNCATE event | ||
975 | * will be generated later by xfs_setattr. | ||
976 | * | ||
977 | * If alloc_type != 0, this request is for a RESVSP type | ||
978 | * request, and a DMAPI DM_EVENT_WRITE will be generated if the | ||
979 | * lower block boundary byte address is less than the file's | ||
980 | * length. | ||
981 | * | ||
982 | * RETURNS: | ||
983 | * 0 on success | ||
984 | * errno on error | ||
985 | * | ||
986 | */ | ||
987 | STATIC int | ||
988 | xfs_alloc_file_space( | 969 | xfs_alloc_file_space( |
989 | xfs_inode_t *ip, | 970 | struct xfs_inode *ip, |
990 | xfs_off_t offset, | 971 | xfs_off_t offset, |
991 | xfs_off_t len, | 972 | xfs_off_t len, |
992 | int alloc_type) | 973 | int alloc_type) |
@@ -1231,21 +1212,9 @@ xfs_zero_remaining_bytes( | |||
1231 | return error; | 1212 | return error; |
1232 | } | 1213 | } |
1233 | 1214 | ||
1234 | /* | 1215 | int |
1235 | * xfs_free_file_space() | ||
1236 | * This routine frees disk space for the given file. | ||
1237 | * | ||
1238 | * This routine is only called by xfs_change_file_space | ||
1239 | * for an UNRESVSP type call. | ||
1240 | * | ||
1241 | * RETURNS: | ||
1242 | * 0 on success | ||
1243 | * errno on error | ||
1244 | * | ||
1245 | */ | ||
1246 | STATIC int | ||
1247 | xfs_free_file_space( | 1216 | xfs_free_file_space( |
1248 | xfs_inode_t *ip, | 1217 | struct xfs_inode *ip, |
1249 | xfs_off_t offset, | 1218 | xfs_off_t offset, |
1250 | xfs_off_t len) | 1219 | xfs_off_t len) |
1251 | { | 1220 | { |