login
Header Space

 
 

Re: [PATCH 2/5][TAKE2] fallocate() on s390 - glibc wrapper

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <torvalds@...>, <akpm@...>
Cc: <linux-fsdevel@...>, <linux-kernel@...>, <linux-ext4@...>, <xfs@...>, <suparna@...>, <cmm@...>
Date: Monday, May 14, 2007 - 11:33 am

On Mon, May 14, 2007 at 08:18:34PM +0530, Amit K. Arora wrote:

Martin also suggested a wrapper in glibc to handle this system call on
s390. Posting it here so that we get feedback for this too.
Here it is:

.globl __fallocate
ENTRY(__fallocate)
	stm	%r6,%r7,28(%r15)	/* save %r6/%r7 on stack */
	cfi_offset (%r7, -68)
	cfi_offset (%r6, -72)
	lm	%r6,%r7,96(%r15)	/* load loff_t len from stack */
	svc	SYS_ify(fallocate)
	lm	%r6,%r7,28(%r15)	/* restore %r6/%r7 from stack */
	br	%r14
PSEUDO_END(__fallocate)

--
Regards,
Amit Arora
 
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/5][TAKE2] fallocate() on s390, Amit K. Arora, (Mon May 14, 10:48 am)
Re: [PATCH 2/5][TAKE2] fallocate() on s390 - glibc wrapper, Amit K. Arora, (Mon May 14, 11:33 am)
speck-geostationary