quilt
is what you want to patch the tree /usr/src/linux
and then
mkdir /usr/src/patches317
ln -sfT /usr/src/patches317 /usr/src/linux/patches
which enables you in /usr/src/linux to do
quilt push -a
if exists a file /usr/src/patches317/series
holding entries of valid patches