[Top] [All Lists]

Write to XFS in VFS and page cache

To: linux-xfs@xxxxxxxxxxx
Subject: Write to XFS in VFS and page cache
From: David Chow <davidchow@xxxxxxxxxxxxxxxx>
Date: Fri, 28 May 2004 12:21:28 +0800
Organization: Shaolin Microsystems Ltd.
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030716
Dear xfs people,

I am new to this list . I am a stackable file system developer which means we 
write file systems for file systems. When my fs runs with xfs, I notice I got 
zero data written to the target file. My write path as follows,

xfspage=read_cache_page(xfsmapping, index,(filler_t *) 
xfs_aops->prepare_write(xfsfile, xfspage, offset, to);
memcpy(page_address(xfspage),somedata, somelength);
xfs_aops->commit_write(xfsfile, xfspage, offset, to);

Both prepare_write and commit_write returns 0 . I did a quick glance on the xfs 
code and notice that it is using the generic_commit_write() facility . Since my 
fs works on most of the file systems which also used the generic_commit_write() 
(e.g. ext2) . I am running Linux kernel 2.4.23 with XFS latest split patches on 
the SGI web site. If you can point out the pointers on how the XFS write path 
for dirty pages works, I will be appreciated. Any help and comment are welcome. 

David Chow

<Prev in Thread] Current Thread [Next in Thread>
  • Write to XFS in VFS and page cache, David Chow <=