| To: | Mark Tinguely <tinguely@xxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] Introduce SEEK_DATA/SEEK_HOLE support v9 |
| From: | Ben Myers <bpm@xxxxxxx> |
| Date: | Thu, 10 May 2012 15:08:32 -0500 |
| Cc: | jeff.liu@xxxxxxxxxx, xfs@xxxxxxxxxxx |
| In-reply-to: | <4FAC1C33.5050508@xxxxxxx> |
| References: | <4FABC2AD.2030609@xxxxxxxxxx> <4FAC1C33.5050508@xxxxxxx> |
| User-agent: | Mutt/1.5.20 (2009-06-14) |
On Thu, May 10, 2012 at 02:51:15PM -0500, Mark Tinguely wrote:
> On 05/10/12 08:29, Jeff Liu wrote:
> >Hello,
> >
> >This is the revised patch according to Mark's comments.
> >Is it possible to get it to accept if there are no other issues,
> >so that I can continue to work on the unwritten part based on that.
> >
> >Thanks,
> >-Jeff
> >
> >Signed-off-by: Jie Liu<jeff.liu@xxxxxxxxxx>
> >
> >---
>
> >+
> >+STATIC loff_t
> >+xfs_seek_hole(
> >+ struct file *file,
> >+ loff_t start,
> >+ u32 type)
> >+{
> >+ struct inode *inode = file->f_mapping->host;
> >+ struct xfs_inode *ip = XFS_I(inode);
> >+ struct xfs_mount *mp = ip->i_mount;
> >+ loff_t uninitialized_var(offset);
> >+ loff_t holeoff;
> >+ xfs_fsize_t isize;
> >+ xfs_fileoff_t fsbno;
> >+ uint lock;
> >+ int error;
> >+
> >+ if (XFS_FORCED_SHUTDOWN(mp))
> >+ return -XFS_ERROR(EIO);
>
> I think xfs_bmapi_read() returns just a XFS_ERROR(EIO), not negative.
> Ben can fix up if you agree.
Looks like error is negated at the bottom of the function and is not a problem.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH v3 1/2] xfstests: introduce 279 for SEEK_DATA/SEEK_HOLE sanity test, Mark Tinguely |
|---|---|
| Next by Date: | Re: [PATCH] Introduce SEEK_DATA/SEEK_HOLE support v9, Mark Tinguely |
| Previous by Thread: | Re: [PATCH] Introduce SEEK_DATA/SEEK_HOLE support v9, Mark Tinguely |
| Next by Thread: | Re: [PATCH] Introduce SEEK_DATA/SEEK_HOLE support v9, Mark Tinguely |
| Indexes: | [Date] [Thread] [Top] [All Lists] |