xfs
[Top] [All Lists]

TAKE 960788 - Fix callers of xfs_iozero() to zero the correct range.

To: xfs@xxxxxxxxxxx
Subject: TAKE 960788 - Fix callers of xfs_iozero() to zero the correct range.
From: lachlan@xxxxxxxxxxxxxxxxxx (Lachlan McIlroy)
Date: Fri, 2 Feb 2007 16:57:09 +0000 (GMT)
Sender: xfs-bounce@xxxxxxxxxxx
Fix callers of xfs_iozero() to zero the correct range.

The problem is the two callers of xfs_iozero() are rounding out the range
to be zeroed to the end of a fsb and in some cases this extends past the new
eof.  The call to commit_write() in xfs_iozero() will cause the Linux inode's
file size to be set too high.

Date:  Sat Feb  3 03:36:02 AEDT 2007
Workarea:  vpn-emea-sw-emea-160-1.emea.sgi.com:/home/lachlan/isms/2.6.x-xfs
Inspected by:  dgc
Author:  lachlan

The following file(s) were checked into:
  longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb


Modid:  xfs-linux-melb:xfs-kern:28013a
fs/xfs/xfs_inode.c - 1.458 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_inode.c.diff?r1=text&tr1=1.458&r2=text&tr2=1.457&f=h
fs/xfs/linux-2.6/xfs_lrw.h - 1.55 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_lrw.h.diff?r1=text&tr1=1.55&r2=text&tr2=1.54&f=h
fs/xfs/linux-2.6/xfs_lrw.c - 1.254 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_lrw.c.diff?r1=text&tr1=1.254&r2=text&tr2=1.253&f=h
        - Fix callers of xfs_iozero() to zero the correct range.




<Prev in Thread] Current Thread [Next in Thread>
  • TAKE 960788 - Fix callers of xfs_iozero() to zero the correct range., Lachlan McIlroy <=