|
@@ -630,22 +630,22 @@ void nilfs_sufile_do_set_error(struct inode *sufile, __u64 segnum,
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * nilfs_sufile_truncate_range - truncate range of segment array
|
|
|
|
- * @sufile: inode of segment usage file
|
|
|
|
- * @start: start segment number (inclusive)
|
|
|
|
- * @end: end segment number (inclusive)
|
|
|
|
- *
|
|
|
|
- * Return Value: On success, 0 is returned. On error, one of the
|
|
|
|
- * following negative error codes is returned.
|
|
|
|
- *
|
|
|
|
- * %-EIO - I/O error.
|
|
|
|
- *
|
|
|
|
- * %-ENOMEM - Insufficient amount of memory available.
|
|
|
|
- *
|
|
|
|
- * %-EINVAL - Invalid number of segments specified
|
|
|
|
- *
|
|
|
|
- * %-EBUSY - Dirty or active segments are present in the range
|
|
|
|
- */
|
|
|
|
|
|
+ * nilfs_sufile_truncate_range - truncate range of segment array
|
|
|
|
+ * @sufile: inode of segment usage file
|
|
|
|
+ * @start: start segment number (inclusive)
|
|
|
|
+ * @end: end segment number (inclusive)
|
|
|
|
+ *
|
|
|
|
+ * Return Value: On success, 0 is returned. On error, one of the
|
|
|
|
+ * following negative error codes is returned.
|
|
|
|
+ *
|
|
|
|
+ * %-EIO - I/O error.
|
|
|
|
+ *
|
|
|
|
+ * %-ENOMEM - Insufficient amount of memory available.
|
|
|
|
+ *
|
|
|
|
+ * %-EINVAL - Invalid number of segments specified
|
|
|
|
+ *
|
|
|
|
+ * %-EBUSY - Dirty or active segments are present in the range
|
|
|
|
+ */
|
|
static int nilfs_sufile_truncate_range(struct inode *sufile,
|
|
static int nilfs_sufile_truncate_range(struct inode *sufile,
|
|
__u64 start, __u64 end)
|
|
__u64 start, __u64 end)
|
|
{
|
|
{
|